import request from '@/utils/request'

// 楼宇列表
export const getList = ({ name, page, pageSize }) => {
  return request.get('park/building', {
    params: {
      name,
      page,
      pageSize
    }
  })
}
// 添加列表
export const addList = ({ name, floors, area, propertyFeePrice }) => {
  return request.post('park/building', {

    name, floors, area, propertyFeePrice

  })
}
// 删除列表
export const delList = (id) => {
  return request.delete(`/park/building/${id}`)
}
// 查询编辑列表
export const editList = (id) => {
  return request.get(`/park/building/${id}`)
}
// 查询编辑列表
export const editListSub = ({ id, name, floors, area, propertyFeePrice }) => {
  return request.put(`/park/building/`, {
    id, name, floors, area, propertyFeePrice
  })
}
